package com.wsc.crawler.URLutils;

import java.net.URL;

/*
 * this class holds a URL, and its dns resolved URL, which is used by grabber,
 * to set host name in the http header while sending HTTP request to a server.
 */
public class URLBean {
private URL unresolvedHost;
private URL dnsresolvedHost;

private String message;
 


public String getMessage() {
	return message;
}
public void setMessage(String message) {
	this.message = message;
}
 
public URL getOriginalURL() {
	return unresolvedHost;
}
public URLBean setOriginalURL(URL unresolvedHost) {
	this.unresolvedHost = unresolvedHost;
	return this;
}
public URL getDnsresolvedHost() {
	return dnsresolvedHost;
}
public URLBean setDnsresolvedHost(URL dnsresolvedHost) {
	this.dnsresolvedHost = dnsresolvedHost;
	return this;
}

public String toString(){
	StringBuffer sb=new StringBuffer();
	sb.append("[");
	sb.append(this.unresolvedHost.toString()+", ");
	sb.append(this.dnsresolvedHost.toString()+", ");
	sb.append(this.message);
	sb.append("]");
	return sb.toString();
}

}
